<!DOCTYPE html>
<html class="no-js" lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>疫情信息管理后台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" th:href="@{/assets/css/bootstrap.mincopy.css}">
    <link rel="stylesheet" th:href="@{/assets/css/font-awesome.min.css}">
    <link rel="stylesheet" th:href="@{/assets/css/metisMenu.css}">
    <link rel="stylesheet" th:href="@{/assets/css/typography.css}">
    <link rel="stylesheet" th:href="@{/assets/css/styles.css}">

</head>

<body>
<div id="preloader">
    <div class="loader"></div>
</div>
<!-- preloader area end -->
<!-- page container area start -->

<div class="page-container">
    <!-- sidebar menu area start -->
    <div class="sidebar-menu">
        <div class="main-menu">
            <div class="menu-inner" style="width: 100%; height: 500px; overflow: hidden;">
                <nav>
                    <ul class="metismenu" id="menu">
                        <li>
                            <a href="javascript:void(0)" aria-expanded="true">
                                <span>疫情信息管理</span>
                            </a>
                            <ul class="collapse">
                                <li><a th:href="@{/admin/data}">数据管理</a></li>
                            </ul>
                            <ul class="collapse">
                                <li><a th:href="@{/admin/riskdata}">风险数据</a></li>
                            </ul>
                        </li>
                        <li class="active">
                            <a href="javascript:void(0)" aria-expanded="true">
                                <span>用户管理</span>
                            </a>
                            <ul class="collapse">
                                <li class="active"><a th:href="@{/userManger/toUserMessage}">用户信息</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="javascript:void(0)" aria-expanded="true">
                                <span>管理员管理</span>
                            </a>
                            <ul class="collapse">
                                <li><a th:href="@{/adminManger/message}">当前账号</a></li>
                            </ul>
                            <ul class="collapse" th:if="${roles} eq ROLE_ROOT">
                                <li><a th:href="@{/root/toShow}">管理账号</a></li>
                            </ul>
                            <ul class="collapse" th:if="${roles} eq ROLE_ROOT">
                                <li><a th:href="@{/root/toAdd}">增加管理员</a></li>
                            </ul>
                        </li>
                        <li><a th:href="@{/admin/logout}"><span>退出登录</span></a></li>
                    </ul>
                </nav>
            </div>
        </div>
    </div>
    <!-- sidebar menu area end -->
    <!-- main content area start -->
    <div class="main-content">
        <div class="header-area">
            <div class="row align-items-center">
                <!-- nav button -->
                <div class="col-md-1 col-sm-8 clearfix">
                    <div class="nav-btn pull-left">
                        <span></span>
                        <span></span>
                        <span></span>
                    </div>
                </div>
                <div class="col-md-7 col-sm-8 clearfix">
                    <a th:href="@{/userManger/toUserMessage(pageNum=${beforePageNum},staus=${staus},id=${id},type=${type},isSubmit=${isSubmit})}" class="btn btn-outline-success">返回</a>
                </div>
                <div class="col-md-2 col-sm-8 clearfix">
                    <p style="color:black" th:text="${name}"></p>
                </div>
                <div class="col-md-2 col-sm-8 clearfix">
                    <a class="btn btn-outline-info" style="height: 30px" th:href="@{/userManger/getDailyData}" >导出</a>
                </div>
            </div>
        </div>

        <div class="main-content-inner">
            <div class="row-fluid">
                <div class="span12">
                    <input id="pageNum" type="hidden" name="pageNum" th:value="${pageNum}">
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>打卡日期</th>
                            <th>联系电话</th>
                            <th>紧急联系人</th>
                            <th>紧急联系人联系电话</th>
                            <th>身体状况</th>
                            <th>是否住院</th>
                            <th>是否隔离</th>
                            <th>是否在校</th>
                            <th>是否在莞</th>
                            <th>当前所处</th>
                            <th>体温</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="item : ${daily_data}">
                            <td th:text="${item.date}">id</td>
                            <td th:text="${item.telephone}">name</td>
                            <td th:text="${item.contacts}">type</td>
                            <td th:text="${item.contacts_telephone}">type</td>
                            <td th:text="良好" th:if="${item.body == 0}">type</td>
                            <td th:text="发烧" th:if="${item.body == 1}">type</td>
                            <td th:text="咳嗽" th:if="${item.body == 2}">type</td>
                            <td th:text="头晕" th:if="${item.body == 3}">type</td>
                            <td th:text="腹泻" th:if="${item.body == 4}">type</td>
                            <td th:text="乏力" th:if="${item.body == 5}">type</td>
                            <td th:text="多种不良现象" th:if="${item.body == 6}">type</td>
                            <td th:text="未就医" th:if="${item.istreatment == false}">type</td>
                            <td th:text="已就医" th:if="${item.istreatment == true}">type</td>
                            <td th:text="未隔离" th:if="${item.isolated == false}">type</td>
                            <td th:text="已隔离" th:if="${item.isolated == true}">type</td>
                            <td th:text="不在校" th:if="${item.inschool == false}">type</td>
                            <td th:text="在校" th:if="${item.inschool == true}">type</td>
                            <td th:text="不在莞" th:if="${item.inguan == false}">type</td>
                            <td th:text="在莞" th:if="${item.inguan == true}">type</td>
                            <td th:text="${item.location}">type</td>
                            <td th:text="${item.temperature}">type</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div>
                    <a th:href="@{/userManger/toUserDailyData(pageNum=1,id=${Id},staus=${staus},sno=${id},type=${type},isSubmit=${isSubmit})}">[首页]</a>
                    <a th:if="${pageNum != 1}" th:href="@{/userManger/toUserDailyData(pageNum=${pageNum}-1,id=${Id},staus=${staus},sno=${id},type=${type},isSubmit=${isSubmit})}">[上页]</a>
                    <a>第</a>
                    <a th:text="${pageNum}"></a>
                    <a>页</a>
                    <a th:if="${pageNum != lastPage}" th:href="@{/userManger/toUserDailyData(pageNum=${pageNum}+1,id=${Id},staus=${staus},sno=${id},type=${type},isSubmit=${isSubmit})}">[下页]</a>
                    <a th:href="@{/userManger/toUserDailyData(pageNum=${lastPage},id=${Id},staus=${staus},sno=${id},type=${type},isSubmit=${isSubmit})}">[末页]</a>
                </div>
            </div>
        </div>

    </div>

</div>

<script th:src="@{/assets/js/vendor/jquery-2.2.4.min.js}"></script>
<script th:src="@{/assets/js/bootstrap.min.js}"></script>
<script th:src="@{/assets/js/metisMenu.min.js}"></script>
<script th:src="@{/assets/js/jquery.slimscroll.min.js}"></script>
<script th:src="@{/assets/js/jquery.slicknav.min.js}"></script>
<script th:src="@{/assets/js/scripts.js}"></script>


</html>